<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}应用版本</h2>
    </div>
    <form action="__SELF__" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">标题</label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$info.title|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">HASH值</label>
            <div class="controls">
                <input type="text" class="text input-large" name="hash" value="{$info.hash|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">系统</label>
           <div class="controls">
				<select name="os" title='选择'>
					<option value="ios" <eq name="info['os']" value="ios" >selected</eq> > 苹果</option>
					<option value="android" <eq name="info['os']" value="android" >selected</eq> > 安卓</option>
				</select>
			</div>
        </div>
        <div class="form-item">
            <label class="item-label">版本号</label>
            <div class="controls">
                <input type="text" class="text" name="number" value="{$info.number|default=''}">
            </div>
        </div>
     
        <div class="form-item">
            <label class="item-label">接链<span class="check-tips">（跳转另外链接）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="url" value="{$info.url|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">强制更新</label>
            <div class="controls">
               <label><input type="radio" value="1" name ="mask" <eq name="info['mask']" value="1" >checked=checked</eq> >是</label>
               <label><input type="radio" value="0" name ="mask" <eq name="info['mask']" value="0" >checked=checked</eq> >否</label>
            </div>
        </div>
        <div class="form-item">
        	<label class="item-label">详细描述</label>
			<div class="controls">
				<label class="textarea">
					<textarea name="description">{$info.description}</textarea>
					{:hook('adminArticleEdit')}
				</label>
			</div>
		</div>
        <div class="form-item">
        	<input type="hidden" value="{$info.id}" name="id"/>
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('index')}');
</script>
</block>